﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp.ViewModels
{
    /*数据传送，实现ViewModels数据更新对View中的消息通知*/
    public class NotificationObject : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;

        public void RaisePropertyChanged(string propertyName)
        {
            if(this.PropertyChanged != null) { 
            this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));}
        }
    }
}
